<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/11/21
 * Time: 19:34
 */
namespace phpfuntions\mp_image;
class myphp_exif
{

    /**
     * exif_imagetype 函数：判断一个图像的类型
     * @access public
     * @return
     */
    public static function exif_imagetype ($filename) {
        return exif_imagetype( $filename);

    }

    /**
     * exif_read_data 函数：从JPEG或TIFF文件中读取Exif头信息
     * @access public
     * @return
     */
    public static function exif_read_data ($filename, $sections = null, $arrays = false, $thumbnail = false) {
        return exif_read_data($filename, $sections , $arrays , $thumbnail  );

    }

    /**
     * exif_tagname 函数：获取图像索引的头信息　
     * @access public
     * @return
     */
    public static function exif_tagname ($index) {
        return exif_tagname( $index);

    }

    /**
     * exif_thumbnail 函数：获取嵌入在TIFF或JPEG图像中的缩略图
     * @access public
     * @return
     */
    public static function exif_thumbnail ($filename, &$width = null, &$height = null, &$imagetype = null) {
        return exif_thumbnail( $filename, $width , $height , $imagetype );

    }

    /**
     * read_exif_data 函数：从JPEG或TIFF文件中读取Exif头信息
     * @access public
     * @return
     */
    public static function read_exif_data ($filename, $sections_needed, $sub_arrays, $read_thumbnail) {
        return read_exif_data( $filename, $sections_needed, $sub_arrays, $read_thumbnail);

    }
}